//
//  ZFBBusinessTypeLayout.m
//  Gunterapple
//
//  Created by 热带雨林 on 2020/3/31.
//  Copyright © 2020 热带雨林. All rights reserved.
//

#import "ZFBBusinessTypeLayout.h"

@implementation ZFBBusinessTypeLayout
//准备布局，collectionView布局时会调用此方法
-(void)prepareLayout{
    [super prepareLayout];
    //设置collectionView的滚动方向，items的大小，cell之间的间距
    self.scrollDirection = UICollectionViewScrollDirectionVertical;
    CGFloat height = (self.collectionView.frame.size.height - 100) / 2;
    CGFloat wight = (self.collectionView.frame.size.width - 3) / 4;
    self.itemSize = CGSizeMake(wight, height);
    //嵌入部分的设置
    self.sectionInset = UIEdgeInsetsMake(0, 0, 0, 0 );
    //竖排与竖排之间的间距
    self.minimumLineSpacing = 5;
    //cell与line之间的值
    self.minimumInteritemSpacing = 1;
    //设置组头组尾的高度
}
@end
